LEADTOOLS Medical (Leadtools.Medical3D assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
DisableEvents Method
See Also 
Leadtools.Medical3D Namespace > Medical3DObjectCollection<Medical3DObject> Class : DisableEvents Method



Called to disable raising the ItemAdded and ItemRemoved events. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Sub DisableEvents() 
Visual Basic (Usage)Copy Code
Dim instance As Medical3DObjectCollection(Of Medical3DObject)
 
instance.DisableEvents()
C# 
public void DisableEvents()
C++/CLI 
public:
void DisableEvents(); 

Example

For an example, refer to RasterCollection.

Remarks

Calling DisableEvents will increment an internal counter. When the internal counter is 0, ItemAdded or ItemRemoved event will be raised when items are added or removed to/from this RasterCollection.

When the internal counter is not 0, ItemAdded and ItemRemoved events will not be raised. Therefore, for each call to DisableEvents, there should be a corresponding call to EnableEvents in order to restore the raising of events.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Medical3D requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features